package com.exmaple.loadBalance;

import com.exmaple.loadBalance.impl.RpcLoadBalanceRandomStrategy;
import com.exmaple.loadBalance.impl.RpcLoadBalanceRoundStrategy;

public enum LoadBalanceEnum {

    RANDOM(new RpcLoadBalanceRandomStrategy()), ROUND(new RpcLoadBalanceRoundStrategy());

    private RpcLoadBalance rpcLoadBalance;

    public RpcLoadBalance getRpcLoadBalance() {
        return rpcLoadBalance;
    }

    public void setRpcLoadBalance(RpcLoadBalance rpcLoadBalance) {
        this.rpcLoadBalance = rpcLoadBalance;
    }

    LoadBalanceEnum(RpcLoadBalance rpcLoadBalance) {
        this.rpcLoadBalance = rpcLoadBalance;
    }
}
